package com.ai.bitcoin.bo;

import com.ai.bitcoin.jpa.entity.BccOrder;

import java.io.Serializable;

public class PayRequest implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private Integer payType;
    private String  orderCode;
    private String userSymbol;
    private String ip;

    private BccOrder order;

    private WeiXinPayRequest weiXinPayRequest;

    public PayRequest(){}

    public PayRequest(Integer payType, String orderCode, String userSymbol, String ip) {
        this.payType = payType;
        this.orderCode = orderCode;
        this.userSymbol = userSymbol;
        this.ip = ip;
    }

    public BccOrder getOrder() {
        return order;
    }

    public void setOrder(BccOrder order) {
        this.order = order;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getUserSymbol() {
        return userSymbol;
    }

    public void setUserSymbol(String userSymbol) {
        this.userSymbol = userSymbol;
    }

    public WeiXinPayRequest getWeiXinPayRequest() {
        return weiXinPayRequest;
    }

    public void setWeiXinPayRequest(WeiXinPayRequest weiXinPayRequest) {
        this.weiXinPayRequest = weiXinPayRequest;
    }


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public static final class WeiXinPayRequest {
        private String openId;
        private String tradeType;
        private String body;

        public WeiXinPayRequest(){}

        public WeiXinPayRequest(String openId,String tradeType,String body) {
            this.openId = openId;
            this.tradeType = tradeType;
            this.body = body;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getTradeType() {
            return tradeType;
        }

        public void setTradeType(String tradeType) {
            this.tradeType = tradeType;
        }

        public String getBody() {
            return body;
        }

        public void setBody(String body) {
            this.body = body;
        }

    }

    public static final class PayType {
        public static final Integer WEI_XIN_PAY = 1;
    }


}

